﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GestionWeb.UsuariosMS.Usuario>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Usuarios SistemaWeb
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Crear Nuevo Usuario</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Campos</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Nombre) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nombre)%>
                <%: Html.ValidationMessageFor(model => model.Nombre)%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Apellido) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Apellido)%>
                <%: Html.ValidationMessageFor(model => model.Apellido)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Correo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Correo)%>
                <%: Html.ValidationMessageFor(model => model.Correo)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Telefono) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Telefono)%>
                <%: Html.ValidationMessageFor(model => model.Telefono)%>
            </div>
            
             <div class="editor-label">
                <%: Html.LabelFor(model => model.FeInicio) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FeInicio)%>
                <%: Html.ValidationMessageFor(model => model.FeInicio)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FeFinal) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FeFinal)%>
                <%: Html.ValidationMessageFor(model => model.FeFinal)%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Cuenta) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Cuenta)%>
                <%: Html.ValidationMessageFor(model => model.Cuenta)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Password) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Password)%>
                <%: Html.ValidationMessageFor(model => model.Password)%>
            </div>
            
            <p>
                <input type="submit" value="Crear" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a Lista", "Index") %>
    </div>

</asp:Content>